package com.java1412.goods.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author java1412
 * @since 2023-06-08 14:49:08
 */
//@RestController
//@RequestMapping("/api/v1/config")
//@RefreshScope   // 自动刷新配置
public class ConfigTestController {

    // 读取nacos中的配置信息
//    @Value("${user.userName}")
//    private String userName;

//    @GetMapping("/test-config")
//    public String test() {
//        return userName;
//    }

}
